from django import forms

class TestForm(forms.Form):
    username = forms.CharField(max_length=10,label='username',
                               widget=forms.TextInput(attrs={'class': 'form-control',
                                                             'id':"id_username"}))
    password = forms.CharField(max_length=8,
                               label='密码',
                               widget=forms.PasswordInput(
                                   attrs={'class': 'form-control',
                                          'placeholder':'confirm password',
                                          'id':'id_password'
                                          }))



    # class_id = models.CharField(max_length=6,verbose_name='教室的id号')
    # class_person_num = models.IntegerField(verbose_name='教师人数')
    # class_room_name = models.CharField(max_length=51,verbose_name='教室名字')
    # class_computer_num = models.IntegerField(verbose_name='教室电脑数')
    # asdf = models.CharField(max_length=1)
    # aa1 = models.CharField(max_length=5,default='fxxk')

class ClassRoomCreateForm(forms.Form):
    class_id = forms.CharField(max_length=6,label='班级id',
                               widget=forms.TextInput(attrs={'class': 'form-control'}))
    class_person_num = forms.IntegerField(
        label='班级人数',
        widget=forms.NumberInput(attrs={'class': 'form-control'}))
    class_computer_num = forms.IntegerField(
        label='班级电脑数量',
        widget=forms.NumberInput(attrs={'class': 'form-control'}))

    class_room_name = forms.CharField(
        label='班级名称',
        max_length=51,
        widget=forms.TextInput(attrs={'class': 'form-control'})
    )